package com.hospital.util;

import lombok.*;
import org.springframework.stereotype.Component;

import java.util.List;


/*
 * 返回数据及状态
 */
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Component
public class JsonUtil {
    //200 404  500 400
    private String code;
    //success  error
    private String status;
    //结果集
    private Object result;
    //集合结果集
    private List<Object> results;
    //返回状态
    private Boolean restate;
}
